package com.woniuxy.impl;

import com.woniuxy.Friend;
import com.woniuxy.Person;

import java.util.List;

/**
 * @Author 罗蔚
 * @Date 2022/3/23 17:46
 * @Description TODO
 */
public class Chinese implements Person {
    String name;
    List fridents;
    Friend friend;
    List<Friend> friendList;

    public Chinese(String name, List fridents, Friend friend) {
        this.name = name;
        this.fridents = fridents;
        this.friend = friend;
    }

    public void setFriendList(List<Friend> friendList) {
        this.friendList = friendList;
    }

    public Chinese(Friend friend) {
        this.friend = friend;
    }

    public Chinese() {
        System.out.println("我是中国人构造...");
    }

    public Chinese(String name, List fridents) {
        this.name = name;
        this.fridents = fridents;
    }

    @Override
    public String toString() {
        return "Chinese{" +
                "name='" + name + '\'' +
                ", fridents=" + fridents +
                ", friend=" + friend +
                ", friendList=" + friendList +
                '}';
    }

    @Override
    public void show() {
        System.out.println("中国人...");
    }
}
